package com.datang.springcode.internationalization;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.support.ResourceBundleMessageSource;

@ComponentScan
public class InternationalizationConfig {
    @Bean
    public ResourceBundleMessageSource setMessageSource() {
        ResourceBundleMessageSource resourceBundleMessageSource = new ResourceBundleMessageSource();
        resourceBundleMessageSource.setBasenames("title");
        return resourceBundleMessageSource;
    }


}
